# coding:utf-8
"""
@author: jing
@contact: 529548204@qq.com
@file: urls.py
@time: 2022/5/24 16:56
"""
from django.conf.urls import include
from django.urls import path

from . import views
from rest_framework.routers import DefaultRouter

app_name = "project"
urlpatterns = [
    path(r'', views.Project.as_view({
        "get": "projectlist",
        "post": "new_project"
    })),
    path(r'<int:pk>/', views.Project.as_view({
        "delete": "del_project",
        "put": "editproject",
        "get": "projectdetail"
    })),
]
